import Vue from 'vue'
import App from './App.vue'
import router from "@/router/router.js"  //路由
import store from "@/store/index.js"    //vuex

Vue.config.productionTip = false

import "@/style/reset.css"  //引入重置样式
import "@/style/border.css"   //引入解决移动端1px边框问题（用css样式的解决方法）

import FastClick from "fastclick"   //解决移动端300毫秒延迟问题
FastClick.attach(document.body);

import Vant from "vant"   //vant-ui的js
import "vant/lib/index.css"   //vant-ui的css样式
import { Lazyload } from "vant"   //懒加载插件
import { Popup } from 'vant';
// import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';



import myPlugins from "@/plugins/myPlugins.js"   //引入自定义的插件

import VueAwesomeSwiper from "vue-awesome-swiper"   //引入vue-awesome-swiper轮播插件
import "swiper/css/swiper.css"   //vue-awesome-swiper轮播插件样式

Vue.prototype.$eventBus = new Vue()   //eventBus写法

Vue     //使用插件
  .use(Vant)
  .use(myPlugins)
  .use(Lazyload)
  .use(VueAwesomeSwiper)
  .use(Popup);
  // .use(GoodsAction);
  // .use(GoodsActionButton);
  // .use(GoodsActionIcon);


new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
